/* 顶部导航 */
.top-nav {
    background-color: #2b79d9;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 18px;
}
.logo .icon-qqzone {
    font-size: 24px;
    margin-right: 8px;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: white;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
.nav-links a.active {
    border-bottom-color: white;
}
.user-ops {
    display: flex;
    gap: 15px;
}
.user-ops button {
    color: white;
    font-size: 16px;
}

/* 封面区域 */
.cover-area {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}
.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-container {
    position: absolute;
    bottom: -60px;
    left: 50px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.user-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid white;
    border-radius: 8px;
}
.user-info {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    padding-bottom: 20px;
}
.username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}
.signature {
    font-size: 14px;
}

/* 主体内容容器 */
.main-container {
    width: 1200px;
    margin: 80px auto 40px;
    display: flex;
    gap: 30px;
}

/* 左侧侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}
.info-card, .contact-card, .stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.info-list li, .contact-list li {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}
.info-list li span:first-child, .contact-list li span:first-child {
    color: #666;
    width: 70px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}
.stats-item .num {
    font-size: 18px;
    font-weight: bold;
    color: #2b79d9;
}
.stats-item .text {
    font-size: 12px;
    color: #666;
}

/* 右侧主内容 */
.content {
    flex: 1;
}

/* 发布框 */
.post-box {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-box textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}
.post-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
}
.tool-btn:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}
.publish-btn {
    background-color: #2b79d9;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
}

/* 动态列表 */
.dynamic-list {
    margin-bottom: 30px;
}
.dynamic-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dynamic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.dynamic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.dynamic-name {
    font-weight: bold;
    font-size: 14px;
}
.dynamic-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}
.dynamic-content {
    margin-bottom: 10px;
    font-size: 14px;
}
.dynamic-media {
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}
.dynamic-ops {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.ops-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
}

/* 相册区域 */
.album-section, .blog-section {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.album-section h2, .blog-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.more-link {
    font-size: 12px;
    color: #2b79d9;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.album-item {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1/1;
    position: relative;
}
.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.album-item .count {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 12px;
    padding: 3px;
    text-align: center;
}

/* 日志区域 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.blog-item:last-child {
    border-bottom: none;
}
.blog-title {
    font-size: 14px;
    margin-bottom: 5px;
}
.blog-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
}